<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>更换皮肤</title>
<link rel="stylesheet" href="css/my.css" type="text/css">
<link rel="stylesheet" href="css/gray.css" type="text/css" class="pifu">
<script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body>
    <ul>
        <li id="gray" class="active"></li>
        <li id="red"></li>
        <li id="blue"></li>
    </ul>
<script type="text/javascript">
	$('ul li').click(function(){
		$(this).addClass('active').siblings('li').removeClass('active');
		$('.pifu').attr('href','css/'+this.id+'.css');
	});
</script>    
</body>
</html>
